Prev | Next

Creating a Flag

<< | >>

Coloring The Flag

Overview

This section describes how to set the color of your flag.

This section assumes that you have read the Quick Start chapter and can create a Comp with a 3D Flag in it.

The Flag Color Comes From A Layer

When the 3D Flag effect is initially applied to a layer, the contents of that layer is used to color the flag. Therefore, if you apply the 3D Flag effect to a blue Solid, the flag will be blue. If you apply the 3D Flag effect to an image or a video clip, that image or video will show up on the flag.

While you can certainly use the layer you have applied the effect to, to color your flag, the 3D Flag plug-in allows you to select any layer to use as your flag image. The advantage of this is that you can do multiple versions of the same flag animation simply by switching the layer that the color is coming from.

For instance, you can apply the flag to a static layer such as a Solid or a Color Matte and then take the color from a separate source layer. When it is time to change the color of the flag just pick the new layer from the Color From Layer menu.

Selecting A Flag Image Layer

The parameter called Color From Layer is used to set the color of the flag.

In the Quick Start chapter, we created a project with the Red Cross flag. When we first applied the 3D Flag effect, we had a flag with a solid color.



It wasn't until we used the Color From Layer parameter that the flag started to have some character.



By coloring the flag with an image, you'll have more control over how the flag looks.



In the next section, Automatically Resizing A Flag, we'll learn how choosing a different color layer can change the flag color and size.

Getting Effects To Appear In The Flag Image

There will be occasions when you'll want to select a color layer that includes effects or masks. You'll probably find that the effects and masks do not appear on the flag.

To get around this limitation, pre-compose the layer, transferring all settings to the new Comp.

Here is an example project demonstrating the need for pre-composing:

Show The Color Layer

  1. Open the "Quick Start.aep" project.
  2. Turn off the visibility of the "My First Flag" layer and turn on the visibility of the "Red Cross.jpg" layer.

    The visibility settings of the two layers should look like the image below.



  3. You should now see the "Red Cross.jpg" image in the Comp window.



Apply Effects

  1. Apply an effect to this layer. Select the "Red Cross.jpg" layer and apply the effect Effect> Stylize> Brush Strokes.
  2. The Comp window should now show the image with the effect applied.



  3. Now turn off the visibility of the "Red Cross.jpg" layer and turn on the visibility of the "My First Flag" layer again.



    You would expect to see the "Brush Strokes" effect applied to our flag image, but instead, nothing has changed.



    This is because effects and masks applied to the color layer are not available to the 3D Flag plug-in. To get around this limitation, pre-compose the layer.

Pre-Compose The Layer That Has Effects

  1. Select the "Red Cross.jpg" layer.
  2. Then, from the Layer menu, select the "Pre-compose..." command (Layer> Pre-compose). The Pre-compose dialog will be displayed.
  3. Name the new Comp "Red Cross Pre-Comp" and select the "Move all attributes into the new composition" option.

    |

    Click the OK button and let After Effects work its magic.

    A new Comp called "Red Cross Pre-Comp" will be created, replacing the "Red Cross.jpg" layer.

Resizing The Pre-Comp

The pre-compose operation creates a Comp that has the same size as the "Flag" Comp (640x480). We want the "Red Cross Pre-Comp" Comp to be the same size as the flag image (400x266). Let's fix that now.

  1. Open the "Red Cross Pre-Comp" Comp.
  2. Open the Composition Settings dialog (Composition> Composition Settings).
  3. We want our Comp size to match the size of the flag, so set the Comp Width to 400 and the Comp Height to 266.
  4. Accept the changes and close the window by pressing the OK button.

Updating The Flag

Now that we've changed the flag's color layer, we'll need to update the flag by re-selecting the color layer. This step is necessary so that the plug-in properly rebuilds the flag object.

  1. Open the "Flag" Comp again.
  2. Select the "My First Flag" layer.
  3. Open the Effect Controls window (Effect> Effect Controls).
  4. Find the Color From Layer menu and select "None." This will reset the color layer back to the color of the Solid. Now that we've changed it, we can change it back.
  5. From the Color From Layer menu, select "Red Cross Pre-Comp." The Brush Strokes effect now appears properly on the flag and the flag is properly sized.



An example file demonstrating this technique called "Pre-Comp Effects.aep" is in the Tutorials folder.